home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1996-03-06 | 923 b | 36 lines |
- ' Set your mouse zones on top of piccy and save info out as an ascii
- ' file which can be merged into your Amos listings easily using the
- ' merge ascii option. No more messing about ....
- '
- ' I got this from the Aminet CD Set 2 somewhere. Can't remember where
- ' abouts though! Sorry, but no author given in source! Enjoy ... AG!
- '
-
- Input "How many zone do you wish to define?";A
- Dim ZN(A,4) : Dim ZN$(A)
-
- F$=Fsel$("**","Select an IFF to Load")
- Load Iff F$,0
-
- For T=1 To A
- Do
- X=X Screen(X Mouse) : Y=Y Screen(Y Mouse)
-
- MC=Mouse Click
- If MC and R=0 Then Inc Q : ZN(Q,1)=X : ZN(Q,2)=Y : R=1 : Change Mouse 2 : MC=0
- If MC and R=1 Then ZN(Q,3)=X : ZN(Q,4)=Y : R=0 : Change Mouse 1 : Exit
- Loop
- Next
- Cls
- For T=1 To A
- ZN$(T)="data "+Str$(ZN(T,1))+","+Str$(ZN(T,2))+","+Str$(ZN(T,3))+","+Str$(ZN(T,4))
- Print ZN$(T)
- Next
-
- F$=Fsel$("**","","Select ASCII Filename")
- Open Out 1,F$
- For T=1 To A
- Print #1,ZN$(T)
- Next
- Close 1
- End